<?php
namespace Common\Model;

use Think\Model;

class ConfigModel extends Model
{
    public function getConfig()
    {
        $config = $this->find();
        return $config;
    }

    public function addConfig($data)
    {
        $this->where(array("id" => "1"))->save($data);
    }
}